package net.lab1024.sa.admin.module.business.yct.yctTeeth.manager;

import net.lab1024.sa.admin.module.business.yct.yctTeeth.dao.YctTeethHospitalDao;
import net.lab1024.sa.admin.module.business.yct.yctTeeth.domain.entity.YctTeethHospitalEntity;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.lab1024.sa.admin.module.system.employee.domain.form.EmployeeAddForm;
import net.lab1024.sa.admin.module.system.employee.service.EmployeeService;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 易齿通口腔门诊  Manager
 *
 * @Author zhangben
 * @Date 2024-11-07 09:39:15
 * @Copyright 20241107
 */
@Service
public class YctTeethHospitalManager extends ServiceImpl<YctTeethHospitalDao, YctTeethHospitalEntity> {
    @Resource
    private YctTeethHospitalDao yctTeethHospitalDao;
    @Resource
    private EmployeeService employeeService;


    public ResponseDTO<String> insertHospitalEntity(YctTeethHospitalEntity yctTeethHospitalEntity, EmployeeAddForm employeeAddForm) {

        yctTeethHospitalDao.insert(yctTeethHospitalEntity);
        employeeAddForm.setRemark(Long.toString(yctTeethHospitalEntity.getHospiatlId()));
       return employeeService.addEmployee(employeeAddForm);

    }
}
